{{PAHS ROBOTICS OPERATING SYSTEM RESEARCH BUILD}}
{{Tuesday, February 17, 2012}}

CON
        _clkmode = xtal1 + pll16x                                               
        _xinfreq = 5_000_000

OBJ
  xbee : "XBee_Object"
  pst  : "Parallax Serial Terminal"

PUB Main
  pst.start(115200)
  waitcnt(clkfreq/4 + cnt)
  
  xbee.start(4,3,0,9600)
  pst.str(String("Beginning to receive packets...",13))

  repeat
    pst.str(String("Received the following: ",13)) 
    pst.dec(xbee.rx)
    